package sd.czw.com.mmgapp.model.goodsbean;

import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by czw
 * desc 描述：
 * on 2017/7/27.
 */
public abstract class GoodsNumSetCallback extends Callback<GoodsNumSetModel> {

    @Override
    public GoodsNumSetModel parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        GoodsNumSetModel userInfo = new Gson().fromJson(string, GoodsNumSetModel.class);
        return userInfo;
    }
}